package com.by.zhdoctor.repository;

import com.by.zhdoctor.domain.ZhengXiangMing;

import org.springframework.data.jpa.repository.*;

import java.util.List;

/**
 * Spring Data JPA repository for the ZhengXiangMing entity.
 */
@SuppressWarnings("unused")
public interface ZhengXiangMingRepository extends JpaRepository<ZhengXiangMing,Long> {

    @Query(value = "select zxm from ZhengXiangMing zxm where zxm.bingming.bmName=?1")
    List<ZhengXiangMing> findAllByBMName(String bmName);
}
